StringScanner.ScanToCharacter Function
Syntax
Text as C = ScanToCharacter as C(characters as c)
Arguments
- Text
The text between the starting and ending offset positions.
- characters
One or more characters to find.
Description
Skip until one of the characters specified is encountered. Return text we scanned over.
Discussion
The <StringScanner>.ScanToCharacter() function moves the offset to the first character that it finds in the Find_Chars string. Note : Find_Chars is interpreted as a list of characters, not as a word.
Example
dim txt as C txt = <<%text% This is wonderful prose written by a technical writer of note. %text% scanner = stringscanner.create(txt) ? scanner.ScanToCharacter("wfz") = "This is " ? scanner.GetToOffset() = "This is " ? scanner.getremainder() = wonderful prose written by a technical writer of note.
See Also